(w32_menu_show, w32_dialog_show): Call Fsignal to quit
authorJason Rumney <jasonr@gnu.org>
Thu, 3 Aug 2006 22:05:07 +0000 (22:05 +0000)
committerJason Rumney <jasonr@gnu.org>
Thu, 3 Aug 2006 22:05:07 +0000 (22:05 +0000)
when no option selected except when for_click.

src/w32menu.c

index 389e6c5b8562822d7fa065d7537779dc8c98acda..11af1d66b6fc4ba9a4836350eacbd4676196daec 100644 (file)
@@ -1994,6 +1994,9 @@ w32_menu_show (f, x, y, for_click, keymaps, title, error)
            }
        }
     }
+  else if (!for_click)
+    /* Make "Cancel" equivalent to C-g.  */
+    Fsignal (Qquit, Qnil);
 
   return Qnil;
 }
@@ -2186,6 +2189,9 @@ w32_dialog_show (f, keymaps, title, header, error)
            }
        }
     }
+  else
+    /* Make "Cancel" equivalent to C-g.  */
+    Fsignal (Qquit, Qnil);
 
   return Qnil;
 }